package com.victualler.product.goods.service.impl;

import com.victualler.core.base.service.impl.BaseServiceImpl;
import com.victualler.core.common.dto.PageDto;
import com.victualler.product.goods.entity.GoodsMainDao;
import com.victualler.product.goods.dto.request.GoodsShowRequestDto;
import com.victualler.product.goods.repository.GoodsMainQueryRepository;
import com.victualler.product.goods.repository.GoodsMainRepository;
import com.victualler.product.goods.service.GoodsMainService;
import org.springframework.stereotype.Service;

/**
 * @Author: Guoshichang
 * @Date: Create in 10:09 2018-05-06
 * @Discription:
 */
@Service
public class GoodsMainServiceImpl extends BaseServiceImpl<GoodsMainDao,GoodsMainRepository,GoodsMainQueryRepository> implements GoodsMainService {

    /**
     * @author Guoshichang
     * @since 13:39 on 2018/7/7.
     * @param goodsShowRequestDto
     * @param pageNo
     * @param limit
     * @Function  根据条件入参PermissionRequestDto动态分页查询权限
     */
    public PageDto<GoodsMainDao> getGoodsByRequestDto(GoodsShowRequestDto goodsShowRequestDto, int pageNo, int limit) {
        return this.baseQueryRepository.getGoodsByRequestDto(goodsShowRequestDto,pageNo,limit);
    }
}
